﻿@model Vacancy
@{
	PageTitle.AddViewTitle("Вакансии", Url.Action("Index"));
	if (Model == null)
	{
		PageTitle.AddViewTitle("Добавление");
	}
	else
	{
		PageTitle.AddViewTitle("Изменение");
	}
}
@section head {
	<link rel="Stylesheet" type="text/css" href="@Url.Content("~/Modules/Vacancies/Content/Vacancies.less")" />
}

@using (Html.BeginForm(null, null, FormMethod.Post, new { enctype = "multipart/form-data" })) {
	@Html.Hidden("returnUrl")
	@Html.ValidationSummary()
	<p><span class="red">*</span> - обязательные поля</p>
	<fieldset class="form-horizontal">
		<div class="required">
			@Html.LabelFor(m => m.Position)
			@Html.TextBoxFor(m => m.Position)
		</div>
		<div class="vertical required">
			@Html.LabelFor(m => m.Description)
			@Html.TextAreaFor(m => m.Description, new {rows = 7, @class = "editor"})
		</div>
		<div class="required">
			@Html.LabelFor(m => m.Salary)
			@Html.TextBoxFor(m => m.Salary)
		</div>
		<div class="required">
			@Html.LabelFor(m => m.Recruiter)
			@Html.TextBoxFor(m => m.Recruiter)
		</div>
		<div class="required">
			@Html.LabelFor(m => m.RecruiterPhone)
			@Html.TextBoxFor(m => m.RecruiterPhone)
		</div>
		<div>
			@Html.LabelFor(m => m.RecruiterEmail)
			@Html.TextBoxFor(m => m.RecruiterEmail)
		</div>
	</fieldset>
	
	<div class="form-buttons">
		<input type="submit" value="Сохранить" />&nbsp;
		<a href="@ViewData["returnUrl"]">Отменить</a>
	</div>
}
